
// 滚动条
import Vuebar from 'vuebar'

import {GridLayout, GridItem} from 'vue-grid-layout'

import draggable from 'vuedraggable'

// 引入BMap
import BaiduMap from 'vue-baidu-map'

import echarts from 'echarts'

export {
  install
}

export default {
  install (Vue) {
    install(Vue)
  }
}

function install (Vue) {
  Vue.component('GridLayout', GridLayout)
  Vue.component('GridItem', GridItem)
  Vue.component('draggable', draggable)
  Vue.use(Vuebar)
  Vue.use(BaiduMap, {
    ak: 'br4iwzKIHEoPVqaTWTATRuzM'
  })

  Vue.prototype.$Echarts = echarts

}
